#include "YGDeviceWM6.h"

#include "YGSources.h"
#include "YGFileManager.h"
#include "YGLog.h"

namespace YoghurtGum
{

	DeviceWM6::DeviceWM6() : Device()
	{
	
	}

	DeviceWM6::~DeviceWM6()
	{

	}

	void DeviceWM6::Init()
	{
		Resize(
			GetSystemMetrics(SM_CXSCREEN),
			GetSystemMetrics(SM_CYSCREEN)
		);

		strcpy(m_WorkingDir, FileManager::Get().GetWorkingDirectory());

		Log::GetSingleton() << "Compiled using " << YG_COMPILER_NAME << ENDL;

		Log::GetSingleton() << "Working directory: " << m_WorkingDir << ENDL;
	}

	void DeviceWM6::Resize(int a_Width, int a_Height)
	{
		m_Width = a_Width;
		m_Height = a_Height;
		m_RealWidth = (float)a_Width;
		m_RealHeight = (float)a_Height;
	}

	int DeviceWM6::GetWidth()
	{
		return m_Width;
	}

	int DeviceWM6::GetHeight()
	{
		return m_Height;
	}

	float DeviceWM6::GetRealWidth()
	{
		return m_RealWidth;
	}

	float DeviceWM6::GetRealHeight()
	{
		return m_RealHeight;
	}

	char* DeviceWM6::GetWorkingDirectory()
	{
		return m_WorkingDir;
	}

}